<!DOCTYPE html>
<html lang="en">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div class="container-fluid">
    <div class="row-fluid">
        <div th:insert="/admin/common/side::side" ></div>
        <!-- content  内容页面的代码放这里 -->
        <div class="block">
            <div class="block-content collapse in">
                <div class="span12">
                    <form class="form-horizontal" method="post" th:action="@{/admin/zz/update}">
                        <fieldset>
                            <legend>症状自查</legend>

                            <div class="control-group" th:if="${zhengzhuang != null}">
                                <label class="control-label" >id</label>
                                <div class="controls">
                                    <input readonly="readonly" required type="text" class="input-xlarge datepicker" id="id" name="id" th:value="${zhengzhuang!=null?zhengzhuang.id:''}">
                                </div>
                            </div>

                            <div class="control-group">
                                <label class="control-label" >症状名称</label>
                                <div class="controls">
                                    <input required type="text" class="input-xlarge datepicker" id="detail" name="detail" th:value="${zhengzhuang!=null?zhengzhuang.detail:''}">
                                </div>
                            </div>

                            <div class="control-group success">
                                <label class="control-label" >传染病</label>
                                <div class="controls">
                                    <select name="crbId" id="crbId" class="form-control1" th:value="${zhengzhuang != null ? zhengzhuang.crbId:''}">
                                        <option th:selected="${zhengzhuang != null ? zhengzhuang.crbId == crb.id: ''}" th:each="crb:${crbs}" th:value="${crb.id}" th:text="${crb.name}"></option>
                                    </select>
                                </div>
                            </div>


                            <div class="form-actions">
                                <button type="submit" class="btn btn-primary"  >[[ ${zhengzhuang!=null?'更新':'新增'} ]]</button>
                            </div>
                        </fieldset>
                    </form>

                </div>
            </div>
        </div>
        <!-- content -->
    </div>
</div>
<!--  main  -->

</body>
<div th:insert="/admin/common/footer::js" ></div>

</html>